import { Layout } from '@fl/utils/routerHelper'

const businessManagementRoute: AppRouteRecordRaw = {
    children: [
        // {
        //     component: () => import('@/pages/business-management/application-settlement/list.vue'),
        //     meta: {
        //         icon: 'i-fluent-mdl2:org',
        //         title: '入驻申请',

        //     },
        //     name: 'application-settlement-list',
        //     path: 'application-settlement-list',
        // },
        // {
        //     component: () => import('@/pages/business-management/application-settlement/detail.vue'),
        //     meta: {
        //         activeMenu: '/business-management/application-settlement-list',
        //         hidden: true,
        //         noTagsView: true,
        //         title: '入驻申请详情',

        //     },
        //     name: 'application-settlement-detail',
        //     path: 'application-settlement-detail',
        // },
        {
            component: () => import('@/pages/company-org/index.vue'),
            meta: {
                icon: 'i-fluent-mdl2:org',
                title: '合作企业',

            },
            name: 'admin-company-org',
            path: 'company-org',
        },
        {
            component: () => import('@/pages/company-org/component/add.vue'),
            meta: {
                activeMenu: '/business-management/company-org',
                hidden: true,
                noTagsView: true,
                title: '添加企业',
            },
            name: 'admin-add-enterprise',
            path: 'add-enterprise',
        },
        {
            component: () => import('@/pages/company-org/component/add.vue'),
            meta: {
                activeMenu: '/business-management/company-org',
                hidden: true,
                noTagsView: true,
                title: '编辑企业',
            },
            name: 'admin-edit-enterprise',
            path: 'edit-enterprise',
        },
        // #region 企业-用户管理
        {
            component: () => import('@/pages/company-org/personnel-organizational/index.vue'),
            meta: {
                activeMenu: '/business-management/company-org',
                hidden: true,
                noTagsView: true,
                title: '组织机构',
            },
            name: 'admin-personnel-organizational-index',
            path: 'personnel-organizational',
        },
        {
            component: () => import('@/pages/company-org/personnel-organizational/component/add/index.vue'),
            meta: {
                activeMenu: '/business-management/company-org',
                hidden: true,
                noTagsView: true,
                title: '新增人员',
            },
            name: 'admin-personnel-organizational-addPeople',
            path: 'personnel-organizational/addPeople',
        },
        // #endregion

        // #region 企业-部门管理
        {
            component: () => import('@/pages/company-org/department-management/index.vue'),
            meta: {
                activeMenu: '/business-management/company-org',
                hidden: true,
                noTagsView: true,
                title: '部门管理',
            },
            name: 'admin-department-management-index',
            path: 'department-management',
        },
        // #endregion

        {
            component: () => import('@/pages/business-management/no-joint-venture/list.vue'),
            meta: {
                icon: 'i-fluent-mdl2:org',
                title: '非合作企业',

            },
            name: 'admin-company-org-no',
            path: 'no-company-org',
        },
        {
            component: () => import('@/pages/business-management/e-auth/list.vue'),
            meta: {
                icon: 'i-icon-park-outline:agreement',
                title: '企业授权',

            },
            name: 'admin-e-auth',
            path: 'e-auth',
        },

        // #region 印章管理
        {
            component: () => import('@fl/pages/e-seal/list.vue'),
            meta: {
                breadcrumb: false,
                icon: 'i-icon-park-outline:agreement',
                title: '印章管理',
            },
            name: 'business-management-e-seal-list',
            path: 'e-seal',
        },
        {
            component: () => import('@fl/pages/e-seal/add.vue'),
            meta: {
                activeMenu: '/business-management/e-seal',
                breadcrumb: false,
                hidden: true,
                noTagsView: true,
                title: '印章管理-新增',
            },
            name: 'business-management-e-seal-add',
            path: 'e-seal-add',
        },
        // #endregion

    ],
    component: Layout,
    meta: {
        title: '企业管理',
    },
    name: 'business-management',
    path: '/business-management',
    redirect: '/business-management/company-org',
}

export default businessManagementRoute
